import Ax from './api';

export default {
  commandAdd: (param = {}) => Ax.put(`/deviceCommand/add`, param),
  commandEdit: (param = {}) => Ax.put(`/deviceCommand/edit`, param),
  commandDelete: (query = {}) => Ax.delete(`/deviceCommand/delete?_id=${query._id}`),
  commandList: (param = {}) => Ax.post(`/deviceCommand/list`, param),
  commandAll: (param = {}) => Ax.post(`/deviceCommand/all`, param),
  commandDetail: (query = {}) => Ax.get(`/deviceCommand/detail?_id=${query._id}`),
  CommandInProtocol: (param = {}) => Ax.post(`/deviceCommand/byGenComm`, param),
  commandCheck: (param = {}) => Ax.post(`/deviceCommand/deviceCommandValidate`, param)
};
